Xbasic
FILENAME_IS_RELATIVE Function
Syntax
Result_Flag as L = Filename_Is_Relative(C filename [,C reference_path ])
Arguments
- Result_Flag
.T. = Filename is relative to the reference path. .F. = Filename is not relative to the reference path.
- filename
The name, and optionally also, path of a file.
- reference_path
Optional. A directory path.
Description
Returns true if the filename is relative to the reference path (current database path if ommitted)
The FILENAME_IS_RELATIVE() function determines whether the specified Filename can be found, with the search starting at the Reference_Path.
Example
The following examples were run with the AlphaSports sample database open.
? filename_is_relative("c:\AlphaSports.alb", a5.Get_Path() ) = .F. ? filename_is_relative("AlphaSports.alb", a5.Get_Path() ) = .T.
See Also